home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir36 / getkey16.zip / TEST.BAT < prev    next >
DOS Batch File  |  1993-08-20  |  743b  |  30 lines

  1. @echo off
  2. REM This test file is an example of how you may use GETKEY
  3. REM Notice it will keep looping until you either hit "Q" or "q"
  4. REM Notice how the menu items control what keys are valid
  5. REM making the /c option unnecessary.
  6.  
  7. :Start
  8. getkey /d:3,15,14 /m20,7"~2. ~Editor" /m20,9"~3. ~Format" /m20,5"~1. ~AntiVirus" /m20,11"~4. ~Quit" "Choose an option " 
  9. REM Take into consideration we have _two_ keys to choose from in each menu 
  10. if errorlevel 7 if not errorlevel 9 goto End
  11. if errorlevel 5 if not errorlevel 7 goto Fmt
  12. if errorlevel 3 if not errorlevel 5 goto Edit
  13. if errorlevel 1 if not errorlevel 3 goto CPAV
  14.  
  15. :Edit
  16. edit
  17. goto Start
  18.  
  19. :CPAV
  20. D:\PCTOOLS\CPAV
  21. goto Start
  22.  
  23. :Fmt
  24. call fmt.bat
  25. goto Start
  26.  
  27. :End
  28. cls
  29.  
  30.